home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / overm82.zip / BTBATS.ZIP / SPAWNBBS.BAT < prev   
DOS Batch File  |  1990-02-19  |  1KB  |  71 lines

  1. echo off
  2.  
  3.    rem
  4.    rem   This batch file is invoked when Binkley detects that
  5.    rem   a human caller is online.  It runs RBBS.
  6.    rem
  7.  
  8.    d:
  9.    cd\rbbs
  10.  
  11.    rem   Delete the file that RBBS creates when remote users
  12.    rem   jump to DOS
  13.  
  14.    if exist rctty.bat del rctty.bat
  15.  
  16.    rem   Delete the file that RBBS creates when the sysop hits F1
  17.  
  18.    if exist rbbs1f1.def del rbbs1f1.def
  19.  
  20.    rem   Uninstall any carrier watchers
  21.  
  22.    rem watchdg1 off
  23.  
  24.    rem Test to see how to run the BBS
  25.  
  26.    if %1$ == $ goto DoorReturn
  27.  
  28.    if %1 == local goto Local
  29.    if %1 == LOCAL goto Local
  30.    if %1 == Local goto Local
  31.  
  32.    goto Remote
  33.  
  34. :DoorReturn
  35.  
  36.    rbbs-pc.exe
  37.    goto CheckEnd
  38.  
  39. :Local
  40.  
  41.    rbbs-pc.exe local
  42.    goto CheckEnd
  43.  
  44. :Remote
  45.  
  46.    rem   Call RBBS with the baud rate and number of minutes
  47.    rem   until the next event, as passed by the BBSBATCH file.
  48.  
  49.    rbbs-pc.exe /%3 /%1
  50.    goto CheckEnd
  51.  
  52. :CheckEnd
  53.  
  54.    rem   Check for a DOS jump.  If so, turn on a carrier monitor.
  55.  
  56.    rem if exist rctty.bat watchdg1 on
  57.  
  58.    if exist rctty.bat rctty.bat
  59.  
  60.    rem   Get out of the whole mess if the sysop hit F1
  61.  
  62.    if exist rbbs1f1.def goto End
  63.  
  64.    rem   Reinvoke the BinkleyTerm batch file
  65.  
  66.    d:
  67.    cd\binkley
  68.    binkley.bat
  69.  
  70. :End
  71.